/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.service.floor;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.source.dao.floor.FloorNodeDao;
import com.thinkgem.jeesite.modules.source.entity.floor.FloorNode;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 楼层维护Service
 * @author ZC
 * @version 2017-07-06
 */
@Service
@Transactional(readOnly = true)
public class FloorNodeService extends CrudService<FloorNodeDao, FloorNode> {

	public FloorNode get(String id) {
		return super.get(id);
	}
	
	public List<FloorNode> findList(FloorNode floorNode) {
		return super.findList(floorNode);
	}
	
	public Page<FloorNode> findPage(Page<FloorNode> page, FloorNode floorNode) {
		return super.findPage(page, floorNode);
	}
	
	@Transactional(readOnly = false)
	public void save(FloorNode floorNode) {
		super.save(floorNode);
	}
	
	@Transactional(readOnly = false)
	public void delete(FloorNode floorNode) {
		super.delete(floorNode);
	}

	public List<FloorNode> getByGroupId(String groupId) {
		return dao.getByGroupId(groupId);
	}
	
}